<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/taglib.jsp" %>
<html>
<head>

<link rel="stylesheet" href="${ctx}/static/css/Master.css">
<script src="${ctx}/static/js/jquery-1.9.0.min.js"></script>
<script src="${ctx}/static/js/simpletooltip.min.js"></script>
<script src="${ctx}/static/js/selectUi.js"></script>
<script src="${ctx}/static/js/common/util.js"></script>
<script src="${ctx}/static/plugins/layer/layer.js"></script>

</head>

<script>
function find(url){
	 var a = $("#form1");
	    a.attr("action",url);
		a.submit();
	}
</script>

<body>
			<section class="boxRight">
				<div class="context boxborder">
				<form action="" method="post" id="form1">
					<div class="tabnavList">
						<ul class="clearfix">
							<li><a href="javascript:void(0);" onclick="find('${ctx}/audit/auditListNo')">待审核</a></li>
							<li class="curr"><a href="javascript:void(0);" onclick="find('${ctx}/audit/auditList')">已审核</a></li>
						</ul>
					</div>
					<div class="com_table">
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<th>序号</th>
								<th>审核类型</th>
								<th>提交时间</th>
								<th>提交人</th>
								<th>审核时间</th>
								<th>审核人</th>
								<th>审核结果</th>
								<th>操作</th>
							</tr>
							<c:forEach items="${result.entityList}" var="org" varStatus="status">
							<tr>
								<td>${status.index + 1}</td>
								<td>${diy:keyToValue(org.orgType,'AUT_TYP')}</td>
								<td>
								<div class="utilTips">
								<pretty:prettyTime date="${org.insertDate}"/>
								<div class="utilTipsText" style="display: none;"><fmt:formatDate value="${org.insertDate}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
								</div>
								</td>
								<td>${org.userName}</td>
								<td>
								<div class="utilTips">
								<pretty:prettyTime date="${org.lastUpdateDate}"/>
								<div class="utilTipsText" style="display: none;"><fmt:formatDate value="${org.lastUpdateDate}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
								</div>
								</td>
								<td>${org.audtPerson}</td>
								<td>${diy:keyToValue(org.auditStatus,'AUD_STATUS')}</td>
								<td>
								<shiro:hasPermission name="mycenter:audit:view">
								<a class="icon micon_9" title="详情" href="${ctx}/audit/${org.orgId}/${org.orgType}/auditDtail"></a>
								</shiro:hasPermission>
								</td>
							</tr>
							</c:forEach>
						</table>
								
				 <%-- 分页 --%>
	           	<%@ include file="/WEB-INF/common/page.jsp"%>
					</div>
					</form>
				</div>
			
		</section>
</body>
</html>